-- GENERATED SPELL FOR [Dragonflayer Ironhelm] --


function spell0_23961(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(57846,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23961', 642, 1)
end

function spell1_23961(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(59607,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23961', 669, 1)
end

function spell2_23961(pUnit, Event) --@Ringing Slap,n/a--
pUnit:FullCastSpellOnTarget(42780,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23961', 5264, 1)
end

function spell3_23961(pUnit, Event) --@Ringing Slap,n/a--
pUnit:FullCastSpellOnTarget(59606,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23961', 5294, 1)
end

function Sorts_23961(pUnit, Event)
local choix_sorts_23961 = math.random(0, 3)
if choix_sorts_23961 == 0 then
pUnit:RegisterEvent('spell0_23961', 1, 1)
end
if choix_sorts_23961 == 1 then
pUnit:RegisterEvent('spell1_23961', 1, 1)
end
if choix_sorts_23961 == 2 then
pUnit:RegisterEvent('spell2_23961', 1, 1)
end
if choix_sorts_23961 == 3 then
pUnit:RegisterEvent('spell3_23961', 1, 1)
end
end

function mob23961_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23961', math.random(1500, 3000), 1)
end

function mob23961_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23961_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23961_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23961, 1, 'mob23961_Action')
RegisterUnitEvent(23961, 2, 'mob23961_Leave')
RegisterUnitEvent(23961, 3, 'mob23961_Kill')
RegisterUnitEvent(23961, 4, 'mob23961_Die')
